import logging

def setup_logger():
    logging.basicConfig(
        # 设置日志级别为INFO
        level=logging.INFO,
        # 设置日志格式
        format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
    )
    return logging.getLogger(__name__) 